package com.situ.spring.controller;

import java.util.List;

import com.situ.spring.entity.Student;
import com.situ.spring.service.IStudentService;
import com.situ.spring.service.impl.StudentServiceImpl;

public class StudentController {
	
	// private IStudentService studentService = new StudentServiceImpl();
	private IStudentService studentService;
	
	public void setStudentService(IStudentService studentService) {
		this.studentService = studentService;
	}

	public void selectAll() {
		System.out.println("StudentController.selectAll()");
		List<Student> list = studentService.selectAll();
		for (Student student : list) {
			System.out.println(student);
		}
	}
}
